package com.itqf.edu.controller;

import com.itqf.edu.service.CourseService;
import com.itqf.edu.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * projectName: edu
 *
 * @author: 宋亚楠
 * time: 2021/9/28 21:32
 * description:
 */
@RestController
@CrossOrigin("*")
@RequestMapping("course")
public class CourseController {

    @Autowired
    private CourseService courseService;

    /**
     * 展示教学大纲
     * @return
     */
    @GetMapping("list")
    public Object list() {

        R r = courseService.list();

        return r;
    }
}
